//
//  EGAEmployeeInfo.m
//  Intranet
//
//  Created by gad on 6/25/55 BE.
//  Copyright (c) 2555 __MyCompanyName__. All rights reserved.
//

#import "EGAEmployeeInfo.h"

@implementation EGAEmployeeInfo

@synthesize EmpID = _EmpID;
//@synthesize Email = _Email;
//@synthesize IsFemale = _IsFemale;
//@synthesize ReligionID = _ReligionID;
//@synthesize ContractStatus = _ContractStatus;
//@synthesize TitleID = _TitleID;
@synthesize RoleID  = _RoleID;
@synthesize RoleName   = _RoleName;
@synthesize Title = _Title;
@synthesize FirstNameTH = _FirstNameTH;
@synthesize LastNameTH = _LastNameTH;
@synthesize IsHeadEGA = _IsHeadEGA;
@synthesize SectorName = _SectorName;
///tesst
-(id)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

-(id)initWithEmpID:(NSString*)empID
             RoleID:(NSString*)roleID
         RoleName:(NSString*)roleName
             Title:(NSString*)title
         FirstNameTH:(NSString*)firstNameTH
          LastNameTH:(NSString*)lastNameTH
        SectorName:(NSString*)sectorName
         IsHeadEGA:(BOOL)isHeadEGA
{
    self = [super init];
    if (self) {
        _EmpID = empID;
        _RoleID=roleID;
        _RoleName=roleName;
        _Title = title;
  _FirstNameTH = firstNameTH;
        _LastNameTH = lastNameTH;
        _IsHeadEGA = isHeadEGA;
        _SectorName = sectorName;
    }
    return self;
}

+(EGAEmployeeInfo*)EGAEmployeeInfoWithEmpID:(NSString*)empID
                                     RoleID:(NSString*)roleID
                                   RoleName:(NSString*)roleName
                                      Title:(NSString*)title
                                FirstNameTH:(NSString*)firstNameTH
                                 LastNameTH:(NSString*)lastNameTH
                                 SectorName:(NSString*)sectorName
                                  IsHeadEGA:(BOOL)isHeadEGA;

{
    return [[EGAEmployeeInfo alloc]initWithEmpID:empID 
                                         RoleID:roleID
                                       RoleName:roleName
                                          Title:title
                                       FirstNameTH:firstNameTH
                                        LastNameTH:lastNameTH
                                      SectorName:sectorName
                                       IsHeadEGA:isHeadEGA];
}

@end
